﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using RedemptoristRetreatCenter.DatabaseUtility;

namespace RedemptoristRetreatCenter
{
    public partial class RetreatDetails : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string idFromQueryString = Request.QueryString["ID"];
            string[] idSplit = idFromQueryString.Split(',');
            int[] id = Array.ConvertAll<string, int>(idSplit, int.Parse);
            RetreatScheduleUtility rsu = new RetreatScheduleUtility();
            //RetreatScheduleInfo retreat = rsu.getRetreatScheduleByScheduleId(id);
        }

        private int stringToInt(string stringValue)
        {
            int intValue;
            bool isNbr = int.TryParse(stringValue, out intValue);
            if (!isNbr)
            {
                Console.WriteLine(String.Format("Could not convert {0} to integer....defaulting to 0", stringValue));
                intValue = 0;
            }

            return intValue;
        }
    }
}